package graduation.service.Impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import graduation.dao.SuggestionDao;
import graduation.entity.Suggestion;
import graduation.service.SuggestionService;
import graduation.vo.PageVO;
@Service
@Transactional
public class SuggesionServiceImpl implements SuggestionService{
	@Autowired
	private SuggestionDao SuggestionDaoImpl;
	/**
	 * 添加
	 */
	@Override
	public void addSuggestion(Suggestion suggestion) {
		// TODO Auto-generated method stub
		SuggestionDaoImpl.addSuggestion(suggestion);
	}

	@Override
	public PageVO getAllSuggestion(int page, int size) {
		// TODO Auto-generated method stub
		return SuggestionDaoImpl.getAllSuggestion(page,size);
	}
	
}
